﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace LView.CMS.ViewModels
{
    public class AssetsAddOrModify
    {
        public string SubjectName { get; set; }
        /// <summary>
        /// 上传操作-文件流
        /// </summary>
        public IFormFile FileData { get; set; }

        /// <summary>
        /// 上传操作-封面
        /// </summary>
        public IFormFile CoverImage { get; set; }

        /// <summary>
        /// 上传操作-文件名称
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 上传操作-文件Index
        /// </summary>
        public int FileIndex { get; set; }

        /// <summary>
        /// 上传操作-文件分片Total数量
        /// </summary>
        public int FileTotal { get; set; }

        /// <summary>
        /// 数据库操作-资源名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 数据库操作-视频播放时长
        /// </summary>
        public decimal? PlaySize { get; set; }

        /// <summary>
        /// 数据库操作-类别Id
        /// </summary>
        public string TypeId { get; set; }

        /// <summary>
        /// 资源类型 video / image / other
        /// </summary>
        public string AssetsType { get; set; }

        /// <summary>
        /// 二级文件夹
        /// </summary>
        public string Directory { get; set; }
    }
}
